;
; Copyright 1999-2000 (c) Synthetic Reality Co.
; http://www.synthetic-reality.com
; All Rights Reserved
;
;
;
; +SECTIONNAME
; <obj#1>
; <obj#2>
; -SECTIONNAME
;
; Sections can appear in any order, but here are the current section names:
;
;  CREDITS			// documentation of the world's authors
;  STORY			// Background story which scrolls by at start
;  TERRAINS			// your names for the terrain possibilities (water, lava, etc)
;  MAPS				// descriptions (file names) of the available maps
;  TOKENS			// tokens which keep track of player achievements
;  ELEMENTS			// your definitions of the 8 elements
;  HANDS			// your definition of the 'right-hand-weapons' classes
;  ITEMS			// stuff (equipment, potions, bonus items, etc.)
;  SPELLS			// spells that can be cast, and their effects and appearance
;  MONSTERS			// Monsters you can encounter, their skills and appearance
;  GROUPS			// monster groupings (which are found together in which combo)
;  LEVELS			// Hero experience level switch points and names
;  SCENES			// scripted dialog to advance plot
;  EQUIP			// Names of the non-hand Equipment items, in case your world needs them
;  THEMES			// Ambient background sound themes for your world
;
; The #include "filename" command lets you break everything up into pieces, so you will
; see that many of the above sections are actually presented in separate files, such
; as "items.txt", "spells.txt", "levels.txt" etc.  This file ("quest.txt") then uses
; "#include" to make it appear as it the other file's contents were actually part of
; quest.txt itself.
;----------------
; CREDITS section

+CREDITS
Chrono Trigger Remix

Story by Squaresoft
Skins by Rabix, Setzu, and Amen
Other Art by Squaresoft, Rabix, and Various Sources
All music created by Squaresoft, provided by Rabix
	
Programming by Rabix
Contact us on the web at:
http://www.geocites.com/kcin139/ctremix
-CREDITS

;--------------
; STORY Section
; Special commands, one per line, control text which follows
;
; :C red,green,blue			set text color (as in ":C 255,0,0" for bright red)
; :S size					set text size  (200 is 'normal')
; :F fontName				set text font name  (use ":F  " to restore default font

+STORY
:S 200
:C 255,255,0
|Chrono Trigger Remix
:S 75
:C 255,255,255
|~~~
|by Ragdar
|Skins by Rabix, Setzu, and Amen
|Music by Squaresoft, provided by Rabix
|~~~ 
:S 100
:C 204,153,0
Welcome to the Chrono Trigger remake project. This world is going to be as identical to the real
game as much as possible. I hope you enjoy the world. 
:F Arial Italic
:C 255,0,0
Prepare yourself...
-STORY

;---------------------
; TERRAINS Section
; Up to 10 terrains (0-9) may be defined and then 'painted' onto maps.  Characters must
; possess the correct equipment to cross certain terrains.  Terrain 0 is always cross-able
; by all characters.
;
;	arg0	the terrain ID  0-9
;   arg1	the name of the terrain (keep it short, it shows up on the terrain editor palette)
;	arg2	the damage inflicted on a character when walking on this terrain (negative heals)
;			NOTE: terrain damage not yet implemented.
;
+TERRAINS
;	arg0	arg1				arg2
;
	0,		"No Hindrance",		0
	1,		"Lava",				10
	2,		"Electricity",		10
	3,		"",					0
	4,		"Deep Water",		0
	5,		"Clouds",			0
	6,		"",					0
	7,		"",					0
	8,		"Healing",			-10
	9,		"Impassable",		0
-TERRAINS



;---------------------
+EQUIP
;	arg0	arg1
;	ID		Name

  	0,		"Helmet"
 	1,		"Armor"
 	10,		"Boots"
 	11,		"Shield"
 	12,		"Ring"
 	13,		"Amulet
-EQUIP



;--------------------
; THEMES section
;
; This section allows you to extend the sound themes available within your scenes.	A sound theme
; consists of a single looped sound (played over and over for as long as the theme is in progress)
; and one or more one-shot sounds (played at random intervals).
;
; arg0 ID (1-255)	(note that these override the built-in themes, so avoid using the lowe numbered
;					themes if you want to keep the built-in themes available
;
; arg1 name			this is just your friendly name for the theme
;
; arg2 loopSound	The name of the .wav file to be looped.  Do not include the .wav extension here, as
;					it is assumed.  The sound effect file is expected to be in your world's SFX folder, and
;					if not found there, the WoS/SFX folder is checked next.  This sound is optional, but
;					if you leave it out, don't forget to leave the comma where it would have been.
;
; argN oneshots		One or more single-shot sounds may be defined.  These are defined with the format
;					"seconds=sound" as in: "10=splash" meaning: play the splash sound about every 10 seconds
;					on average, but randomly.  You should adjust the seconds field until you get the sound
;					you like.  You will need to adjust the timing, volume, and number of single-shots until
;					you get a sound you like.

+THEMES
;	arg0	arg1		arg2			arg3 - N
;	ID		name		loopSound		seconds=sound
;
;	note: reserve first 20 for the hard-coded themes (also note that 0 means 'silence')
;
	20,		cavedrip,	campfire1,		10=drip1,10=bird1,10=splash1
;
-THEMES

;--------------------
; MAPS section
;
;   arg4	The Map FLAGS. This is a number, containing several flags, which controls
;			specific behaviours of players while on a map.  Add together the values
;			of each flag you want and then set the map flags to that value.  For example,
;			if you want both flag 2 and flag 4, then set the map flags to "6"
;
;		DECIMAL		HEX		MEANING, WHEN INCLUDED
;
;		1		0x00000001	// enables pet vs pet battles (but protects players from pets)
;		2		0x00000002	// enables pets to be used against other players or pets (if pkers or no safehaven)
;		4		0x00000004	// enables "no protection from PKer"
;		8		0x00000008	// enables "no PKing allowed here at all"
;		16		0x00000010	// enables "LADDER" reporting. (PK kills on this map are reported to ladder server)
;		32		0x00000020	// enables "show all link names." 
;							// Normally link names are hidden until after first use of link.
;		64		0x00000040	// disables "Shadows" under heroes (and monsters) on map and in scenes of that map.
;		128		0x00000080	// disables the use of pets (cannot summon them) on this map.
;		256		0x00000100	// disables eavesdropping to and from players on this map.  
;							// (you can still whisper, shout, etc.)
;		512		0x00000200	// designates the map a GUILD HALL map.  (not sure what this means yet...)
;		1024	0x00000400	// Prevents Humans from being able to damage monsters or pets
;		2048	0x00000800	// NO_REWARD.  After a fight, no GP, XP or items are found to reward the survivors
;							// Pets still get rewarded, coz I am a big softy
;		4096	0x00001000	// NO_HEAL.  Heal spells and items provide only 1HP of sustenance.
;		8192	0x00002000	// NO_TICKETS.  Tickets won't work here
;		16384	0x00004000	// NO_MINI_MAP. upper right minimap is uninformative here
;		32768	0x00008000	// NO_STUN.  the non-buff disease spells will not work here 
;							// (stun, sleep, paralyze, etc.)
;		65536	0x00010000	// NO_BUFF.	the buff/debuff disease spells will not work here.
;		131072	0x00020000	// NO_PKREZ. PKers cannot use resurrection spells on others
;       262144	0x00040000	// MAP_FLAG_HIDE_LINKS. don't show white link boxes on minimap until visited
;	    524288  0x00080000	// MAP_FLAG_NO_WAYPOINTS disable automatic waypoint calculations (good for mazes)
;
+MAPS

;
; The actual map definitions are in this file, which is created by the New World Wizard:
;
#include maps.txt

-MAPS


;------------------------------------------------------------------------------------


+TOKENS
	1,"Got out of bed."
	2,"Recieved allowance."
    3,"Met Marle."
	4,"Found her pendant."
	5,"Returned her pendant, Marle joined party."
	6,"Warped to 600 AD."
	7,"Met Queen Leene."
	8,"Marle Disappears."
	9,"Lucca arrives, Hunt for the Queen is on."
	10,"You killed the Yakra and returned the Queen."
	11,"You we're sent to Jail."
	12,"You broke out of Jail with the help of Lucca."
	13,"You, Lucca, and Marle enter a mysterious portal in the Forest."
	14,"You find yourselves in a bleak future."
	3000,"Little Girl is missing her kitten."
	3001,"You found the Little Girl's kitten."
	3002,"You returned the Little Girl's kitten and were rewarded."
	4000,"You answered Trivia 1 correctly."
	4001,"You answered Trivia 2 correctly."
	4002,"You answered Trivia 3 correctly."
	5000,"You are a Defender of Time."
	5001,"You are a Master of the Elements."
	5002,"You are a Marksman of the Realm."
	5003,"You are a GoGo Dancer of Time."
	5004,"You are a Fist-User."
	5005,"You are a Mechanic."
	5006,"You are a Book-User."
-TOKENS


;---------------------
; ELEMENTS Section
;         0
;      7  |  1
;       \ | /
;    6 ---+--- 2
;       / | \
;      5  |  3
;         4
;
; With ID 0 at the NORTH position.  This must be your 'healing' spell. and will apply healing
; equally to all characters, independent of their element affinities.
+ELEMENTS
;	arg0	arg1				
;
	0,		"Life"		
	1,		"Water"			
	2,		""			
	3,		""			
	4,		"Monster"		
	5,		"Fire"		
	6,		"Shadow"		
	7,		"Lightning"	
-ELEMENTS

;-----------------------
; HANDS section
;
; Similar to elements, the 'hand' classes represent the different styles of
; weapons which can be held in the 'right-hand.' The EQUIP screen allows the
; player to train themselves in these 8 categories.  Only after they reach
; level 5 in a category are they able to wield weapons of
; that category.  
;
;	arg0	The ID of the 'hand' which strangely enough is numbered 0-7 even though
;			elsewhere it is referred to as 1-8, so I expect to needlessly confuse
;			you about this.
;	arg1	The name of the weapon class.  
;	arg2	The 'range' of the weapons class.  This should be a number in the range
;			0-100 which represents the distance at which EQUIP attacks WILL NOT MISS. A
;			small range circle will be drawn at your feet when you have the EQUIP
;			list selected and it is your turn to fight.
;   arg3    The sound effect to be played when this hand attacks, unless the equipped item
;			has its own sound effect.  If neither the hand nor the weapon has a specified
;			sound effect, one is selected at random each time you load the world.
;
; 	arg0	arg1
;	ID		Name

+HANDS
;  
; arg0		arg1		arg2		arg3
;  ID		Name		Range		SoundFX
;
	0,		"Sword",	30,			"sword1.wav"
	1,		"Staff",	20,			"staff.wav"
	2,		"Bow",		100,		"sword8.wav"
	3,		"Glove",	50,			"chirp4.wav"
	4,		"Fist",		20,			"fist.wav"
	5,		"Dart",		80,			"dart.wav"
	6,		"Book",		70,			"chant6.wav"
	7,		"Spirit",	90,			"crow1.wav"
-HANDS


+ITEMS

; The actual item definitions, and documentation, are in this file:
#include items.txt

-ITEMS


+SPELLS

; The actual item definitions, and documentation, are in this file:
#include spells.txt

-SPELLS


+MONSTERS

; actual monster definitions, and documentation, are in this file:
#include monsters.txt

-MONSTERS


+GROUPS

; actual groups, and documentation, are in this file
#include groups.txt

-GROUPS


+LEVELS

; actual character classes, levels, and documentation are in this file
#include levels.txt

-LEVELS



+SCENES
;--------------
; SCENE 0 must be primary well of souls
;
SCENE 0		temple, WELL, "Well of Souls", 2, 7
	THEME	1
	MUSIC	Credits.mid
	ACTOR	1,	"Old Man", {MM}Old Man, 1, 0, 60
	SEL		1
	POSE	32,32,32
	MOVE	1,	50, 60
	
	WAIT	1.0
	' Welcome to the Well of Souls, traveler.
	' This world is harder than most.
	' Some classes will not have initial weapons for purchase.
	' Also, this is generally not a world for just battles. This world follows the Chrono Trigger storyline.
	' For any suggestions, or to report a bug, Email me at ragdar8@hotmail.com. Please entitle you email as "CT World".
	' Thanks for playing!
	WAIT 1
	MENU "Help=@help", "Credits=@credits", "Version=@version"
END

@help
	MOVE	1,	45, 60
	' I can help you create a new soul, or restore a treasured one.
	MOVE	1,	30, 70
	' When you are ready, select your soul and then incarnate into the physical world.
	MOVE	1,	40, 75
	' Notice the buttons along the bottom of your screen.  Point to a button to see its name.
	' Press the NEW button to create a new soul, and select its skin and abilities.
	MOVE	1,	25, 70
	' Press the RESTORE button to select an old soul, and resume its struggle again Lavos.
	MOVE	1,	35, 65
	' Press the INCARNATE button to enter the physical realm again.
	MOVE	1,	30, 70
	' Press the MAP button to see what other souls roam the world.
	MOVE	1,	40, 77
	' Press the HAUNT button to spy invisibly over another incarnated soul.
	MOVE	1,	20, 70
	' You may rest here safely, for as long as you like.
END

@credits
	' Many thanks go out to various sources.
	' If you clicked on this, you must want to hear about them.
	' I'd like to start off first by giving credit where credit belongs.
	' Suicidecandy, I thank you for sticking with me from the very beginning as my beta tester.
	' Also, Setzu, I'd like to thank you too, for inspiring me to start the world.
	' I also thank Sergey, for various reasons.
	' I should mention Amen, since I do have his skins in the world.
	' Finally, I would like to thank Square-Enix for making this great game. I salute you.
END

@version
	' The version of this world is 1.0028
END
;--------------
; SCENE 1 must be primary CAMP scene
;
SCENE 1
	THEME
;	MUSIC   (no music in camp scene, just theme)

; Check is this is a PK Attack (uses CAMP scene, not FIGHT scene, oddly enough)

	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	

; Not a PK Attack, check if it is in Macguyver castle

	COMPARE #<num.mapNum>, 2
	IF=	@inCastle
	GIVE L1
	GIVE H5000
	GIVE M5000
END


;
; It *is* a PK Attack, so we set up some special rules to make it 'honorable'
;
@pk
	; Set map flags: 32768 (no nasty spells) + 8192 (no tickets) + 4096 (no Heal)
	FLAGS	45056

	; Lock the room
	LOCK 1

	; Announce to the players that this is a special place
	N: PK Attack! 
	N: Locked Camp!
	N: No Healing, Stunning, or Tickets!

	; we have to END or they can't fight
	END

@eventPkAttackDone

	; maybe someday this event will work, and we can unlock the camp as soon as 
	; only one side is left standing

	LOCK 0
	FLAGS 0
	END


; We *are* in macguyver castle, so we have the little lock icon in the upper right,
; and can manually lock/unlock the camp.. to discusss our secret plans!
;
@inCastle
	; we get a little lock icon while in macguyver castle camps.
	SET sceneLock, 0
	ACTOR	9, "Lock", danNoFloat, 6, 95, 10
END

; The scene host has clicked on the little lock icon

@eventActorClick9
	COMPARE #<sceneLock>, 0
	IF= @lockScene
	LOCK 0
	SET sceneLock, 0
	SEL 9
	POSE	6
	END
@lockScene
	LOCK 1
	SET sceneLock, 1
	SEL 9
	POSE	5 
	END

;--------------
; SCENE 2 must be primary FIGHT scene (for automatic fights)
;
SCENE 2
	THEME
;	MUSIC  mortal.mid

	FIGHT

END

;--------------
; SCENE 3 (this is the evergreen starting scene on the main map, where you can return to be healed)
;
SCENE 3		aztec
	THEME	0
;	MUSIC	waltz2.mid
	ACTOR	1,	"Soul Brother", joshRoyalty, 5, 25, 90
	POSE	5, 5, 13
	SEL		1
	MOVE	1,	15, 80

	IF T1, @continue
	' Greetings, new soul. You are about to embark upon an amazing voyage of discovery.
	' When sharing your journey with other souls, it is important that you obey the golden rule.
	' Do you agree to obey the golden rule? (type YES or NO)
	ASK 30
	IF -YES, @saidNo
	' Thank you, my child.  You shall never regret your decision.
	' Push the SHOP button when it appears.  You might find better equipment is available for you as your level increases.
	GIVE T1
	GOTO @continue
@saidNo
	' It is a sorry state that the world has fallen into.  You sadden me.
	' I cannot bring myself to give sustenance to such a renegade as you.
	' Begone!
	MOVE	1, -30, 80
	END

@continue

	IF ALIVE, @skip1
	' You seem to be dead, let me resurrect you.
	WAIT    4.0
	SOUND	"thunder1.wav"
	WAIT	1.0
@skip1
	MOVE	1,	10, 75
	GIVE	L1
	GIVE	H5000
	GIVE	M5000 
	IF I99,@skipTicket
	GIVE	I99				; give him a ticket home
@skipTicket
	; offer EVERYTHING under level 10
	OFFER2	0,10
	' Blessings upon you, Soul.
	' You are always welcome here, to rest and recover... 
    IF T3, @skipQuest
	IF -#0, @skipQuest		; only on main map (gateway, I hope)

	1: Say, %1, I wonder if you could aid me in a small quest...
	1: The date of the next meeting of the soul brotherhood has been changed.
    1: I don't think my brother in MacGuyver Castle has been told.
	1: If you meet him in the Castle Well, please let him know.
	1: Thank you, my child!

@skipQuest
	IF V10, @skip2
	' Visit the town well in Macguyver Castle if you have need of training.
@skip2
END





;--------------
; SCENE 4 Generic Casino
;
SCENE 4		aztec
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Barker", joshRoyalty, 2, 25, 90
	SEL		1
	MOVE	1,	15, 80
	GAME	1
	' Try your luck!
	' Our slots pay the most!
END




;---------
; general armor shop

SCENE 5 bwEuroStreet
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Daniel", joshTownsFolk, 17, 25, 90
	SEL		1
	MOVE	1,	15, 80
	OFFER2	0,99,10,0,99,11,0,99,20,0,99,21
	' Finest armor in Evergreen!
END

;---------
; general weapons shop

SCENE 6 bwEuroStreet
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Josh", joshTownsfolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80
	OFFER2	0,99,12,0,99,13,0,99,14,0,99,15
	' Finest weapons in Evergreen!
END

;---------
; general baubles shop

SCENE 7 bwEuroStreet
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Michelle", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER2	0,99,22,0,99,23
	' Finest rings and amulets in Evergreen!
END


;---------
; item/potion shop
;
SCENE 8 bwEuroStreet
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Charley", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80
	OFFER2	0,99,0

	' Note our new items for sale.
END

;---------
; seed shop
;
SCENE 9 bwHangar
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Abe", joshRoyalty, 11, 25, 90
	POSE	11,4
	SEL		1
	MOVE	1,	15, 80
	OFFER	8,20,21,22,23,25
	' Please peruse my wares for the experienced adventurer.
END
;---------
SCENE 10 greek2, SCENE, "King Felafel's Throne Room", 0, 0

	ACTOR	1,	"King Felafel",		joshRoyalty, 1, 50, 70

	POSE	1,26
	ACTOR	2,	"Queen Sarah",		joshRoyalty, 3, 25, 65
	POSE	3,8
	ACTOR	3,	"Vizir",			joshRoyalty, 5, 75, 65
	POSE	5,13
	SEL		1

END

;---------
SCENE 11 scene11, SCENE, "Wyrm Cavern"

	IF	T11, @hasT11
	ACTOR	1,	"The Cavern Wyrm",		josh42,	1,	20,	70
	POSE	1,4,2
	SEL		1
	1: If you want a scale, you'll have to kill me to get it!
	1:
	MOVE	1, -50,50
	WAIT	5.0
	FIGHT	210
	IF	WIN	@heWon
	MOVE	1, 20,60
	1: Ha ha ha!  Come back when you're not such a wimp!

	END

@heWon
	MOVE	1, 30,80
	GIVE	T11
	1: Man, you are tougher than you look!  You win!  Take my scale
	END

@hasT11
; the cave is empty now
	END

END


;---------
SCENE 12 cave2, SCENE, "The Old Bootmaker"
	ACTOR	1,	"Shu",		joshTownsFolk,	22,	30,	85
	POSE	22,21
	SEL		1

	;	// boot shop with everything
;	OFFER   184,183,191,188,186,187,185,196,194,195,193,197,190,189
	OFFER2	0,99,20

	IF	T11, @hasT11
	1: Get me a dragon scale, and I will make you a fine pair of dragon boots.
	GIVE T12
	END

@hasT11
	IF	T13, @hasT13
	ACTOR	2,	"Zanf",			josh56,	1,	75,	40
	POSE	1,3,2
	GIVE	T13
	1: This is a WONDERFUL Wyrm scale, here are some dragon boots.
	WAIT	3

	2: I'll take those!  See you sucker!
	MOVE	2,	60,40
	WAIT	1
	MOVE	2,	110,25
	END

@hasT13
	IF  T15, @hasT15
	1: Too bad that pesky thief stole your boots, they were cool!
	END

@hasT15
	1: I see you got your boots back, that's GREAT! 
	1: Let me touch them!
	1: Now THAT's fine worksmanship!
	END

END


;---------
SCENE 13 scene13, SCENE, "Thief's Hideout"
	ACTOR	1,	"Zanf",		josh56,	1,	40,	70
	POSE	1,3,2
	SEL		1

	IF	T13, @hasT13
	1: What are YOU doing here kid?  Scram!
	END

@hasT13
	IF	T15, @hasT15
	GIVE T14
	1: Come for your boots, eh?  Well they fit ME just fine!  Har har!
	1: Men, teach this punk a lesson!
	FIGHT	111,112,111,113
	IF	WIN,	@heWon
	1: You're pathetic!  Har Har!
	END

@heWon
	GIVE	I702
	GIVE	T15
	1: Drat!  Well, I guess you earned these!
	1: I was getting blisters anyway!
	END

@hasT15
	1: Please don't hurt me!
	END

END


;---------
SCENE 14 scene14,FIGHT,"Shores of lake Shinka"
	THEME	0
	FIGHT	5,4,4,3,2,1
END
;---------
SCENE 15 scene15,CUT,"Shores of lake Shinka"
	THEME	1
	ACTOR	1,	"Zanf",		josh56,	1,	40,	90
	1: So, you have come at last!
	1: This is my dream
	1: I don't see you, do I?
END
;---------
SCENE 16 scene16,FIGHT,"Shores of lake Shinka"
	THEME	2
	FIGHT	9,8,5,4,6
END
;---------
SCENE 17 scene17,FIGHT,"Shores of lake Shinka"
	THEME	3
	FIGHT	9,8,7,6
END
;---------
SCENE 18 scene18,FIGHT,"Shores of lake Shinka"
	THEME	4
	FIGHT	11,10
END



;---------
;
; From here on it is major script points.
;
SCENE 19 aztec
	THEME	5
	ACTOR	1,	"Ghost", joshMiscellaneous, 2, 25, 80

	1: Welcome to the Temple of Forgetfulness
	1: I can help you forget past adventures, whose memories cause you pain.
	1: Be warned, once forgotten, an adventure must be re-experienced in full!
END
;---------
; Crono's Room, Beginning Scene
SCENE 20 shop
	THEME	0
	MUSIC	1000 AD.mid
	ACTOR	1,	"Crono's Mom", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80
	
	IF T1, @S1
	1: Crono...  Crono!
	1: Good morning, Crono!
    1: Come on, sleepy head!
    1: Get up!
    1: Ah, Leene's Bell makes such a beautiful melody! 
    1: You were so excited about the Millenial Fair that you didn't sleep well, did you...?
    1: I want you to behave yourself today! Let's get moving, now!
	GIVE T1
END

@S1
	1: Just changing your bedding.
END
;---------
; Crono's House, Kitchen Scene
SCENE 21 shop
	THEME	0
	MUSIC	1000 AD.mid
	ACTOR	1,	"Crono's Mom", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T2, @S2
	1: Finally!
	1: By the way, that inventor friend of yours... Uh... you know...!
    1: Oh, dear, I've forgotten her name!
    1: Oh, thats right, Lucca!
    1: Don't forget she invited you to see her new invention.
    1: Run along now, and don't forget to be back before dinner.
    1: Wait, her, take some spending money for the fair.
	TAKE G800
	GIVE T2
END

@S2
	1: Hello Crono!
END
;---------
; Millenium Fair, Meeting with Marle
SCENE 22 plaza
	THEME	0
	MUSIC	Millenium Fair.mid
	ACTOR	1,	"Marle", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T3, @S3
	1: Hey!!
	1: Ouch, that hurt!
	1: I'm so sorry!
	1: Are you okay?
	1: Uh oh... My pendant!
	1: Oh, no!  Don't tell me I lost it.
	GIVE T3
END

@S3
	IF T4, @S4
	1: Have you found it yet?
END

@S4
	1: Oh, thank goodness!  My pendant!
	1: It has a lot of sentimental value!

	1: May I have it back? [yes]
	ASK 30  
	IF -YES, @saidNo
	1: I came to see the Festival!  
	1: You... live in this town, don't you?  
	1: I feel a little out of place here.  
	1: Would you mind if I walked around with you for a while? 
	H: No.
	1: You're a true gentleman!  
	1: Oh, by the way... MY name is, er...  um, Marle!  
	1: And you're? Crono? 
	1: What a nice name!  
	1: Pleased to meet you!  
	1: Now, lead on!
	GIVE T5
END

@saidNo
	1: Meenie!
END
;---------
; Finding Marle's Pendant
SCENE 23 plaza
	THEME	0
	MUSIC	Millenium Fair.mid
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T4, @ S5
	H: I found Marle's pendant.
	GIVE T4
END

@S5
	H: There's nothing here.
END
;---------
; Millenium Fair, Lucca's Machine
SCENE 24 plaza
	THEME	0
	MUSIC	Millenium Fair.mid
	ACTOR	1,	"Lucca", @Amen@Lucca, 1, 25, 90
	POSE	9,10
	ACTOR	2,	"Taban", joshTownsFolk, 9, 27, 90
	POSE	9,10
	ACTOR	3,	"Marle", @Amen@Marle, 1, 50,50
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T5, @S6
	1: I'm sorry Crono.
	1: The machine isn't set up yet.
END

@S6
	IF T6, @S7
	2: Step right on up, any of you who have the time and the courage!
	2: Our Super Dimension Warp is the invention of the century!
    2: To use it, jump up here... and you'll get teleported here!  
    2: It's the masterwork of my beautiful daughter, Lucca.
    2: Give it a try, kid?  Oh, it's you, Crono!
	1: Crono!
	1: Where have you been!?
	1: No one wants to try the Telepod! How about you?
	3: It looks like fun!  I'll watch while you try it out!
	2: All systems on!
	1: Begin energy transfer!
	3: What a kick!  I want to try it, too!
	1: Huh?
	1: Hey Crono, how did you pick up a cutie like her?
	3: Hang on, Crono!  I'll be right there!
	2: Behold, ladies and gentlemen, as this vision of loveliness stops aboard the machine!
	3: Don't go away.  I'll be right back!
	2: You're sure about this...?
	2: There's still time to change your mind!
	3: No way!  Throw the switch!
	2: Okay, everyone, let's give her a great big hand when she reappears!
	2: All systems on!
	1: Begin energy transfer!
	3: What's happening?  My pendant... it's...
	1: Huh?
	2: Lucca!
	2: Where is she?!
	2: Show's over, folks!  Let's head along now!
	2: What's going on Lucca?
	2: WHERE IS SHE?
	1: The way she disappeared... It couldn't have been the Telepod!
	1: The warp field seemed to be affected by her pendant...
	2: What are we going to do now?
	1: She's so familiar!
	1: I KNOW I've seen her somewhere... 
	1: Crono!
	2: You're actually going to do it?!
	2: What a fine lad!
	1: Listen!
	1: I don't know where this machine is going to send you, but we haven't any other choice.
	2: Won't they both be lost?
	1: This is our only hope!
	1: That pendant seems to be the key, so hang on to it %4, and brace yourself!
	2: All systems on!
	1: Begin energy transfer!  Power to full!
	2: Roger!
	1: More!  Give me more power!
	2: Roger!
	1: There!  We did it!
	1: I'll follow you after I know what went wrong.
	1: Good luck, Crono!
	GIVE T6
	GOTO LINK 9,0
END

@S7
	GOTO LINK 9,0
END
;---------
; Guardia Castle 600 AD
SCENE 25 shop
	THEME	0
	MUSIC	Guardia Castle 600 AD.mid
	ACTOR	1,	"Queen Leene", @Amen@Marle, 1, 25, 90
	POSE	9,10
	ACTOR	2,	"Soldier 2", joshTownsFolk, 9, 27, 90
	POSE	9,10
	ACTOR	3,	"Soldier 2", joshTownsFolk, 9, 50,50
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80
	
	IF T7, @S8
	2: Halt!  Who goes there! 
	3: Check out that hair!
	3: Where're you from, son?
	3: Are you one of Magus's troopers?
	2: Hardly!  This kid never would have made the cut!
	2: Show us your stamp collection, son!
	3: Har, har!  Now beat it, shrimp!.
	1: Stop that at once!
	2: Queen Leene!
	1: Show your manners!
	1: This is a friend of mine!.
	2: But there's something odd about him!
	1: You refuse to obey my orders?!
	2: Forgive me, my lady!  Please enter, sir!
	1: *Giggle*
	GIVE T7
END

@S8
	2: Good day to you sir.
END
;---------
; Queen Leene's Room
SCENE 26 shop
	THEME	0
	MUSIC	Guardia Castle 600 AD.mid
	ACTOR	1,	"Marle", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T8, @S9
	1: Ah!  There you are. 
	1: Come nearer, Sir.
	1: *giggle*
	1: Fooled you, didn't I, Crono?
	1: It's me!
	1: But everyone calls me, Leene!
	1: I'm so relieved you're here!
	1: We barely know each other, but somehow, I knew you'd come for me...
	1: Thank you, Crono!
	1: S, something's wrong!!!
	1: W, what's happening?!
	1: It feels like... I'm being torn apart!
	1: Help me, Crono!
	1: I'm scared!!!
	1: Please... Crono... h, help me!
	GIVE T8
END

@S9
	GOTO LINK 12,11
END
;---------
; Castle Hallway
SCENE 27 shop
	THEME	0
	MUSIC	Guardia Castle 600 AD.mid
	ACTOR	1,	"Lucca", joshTownsFolk, 9, 25, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T9, @S10
	1: Crono!
	1: Huff, puff... you're okay!
	1: Did you find the girl?
	1: GONE?!
	1: Whadd'ya mean she's gone?!
	1: Hmmm... it's just as I thought.
	1: I knew I recognized her!
	1: And this looks identical to the castle in OUR time!
	1: I'll bet they mistook that girl for her ancestor...  You see, she's a member of the royal family in OUR time!
	1: She's Princess Nadia!
	1: Marle, that is, Princess Nadia, is a descendant of Queen Leene!
	1: Queen Leene has been kidnapped.
	1: As I recall, someone was supposed to have saved her.
	1: But history has been changed!

	1: Marle looks so much like Leene, that they probably called off their search when she appeared here.
	1: But if the real Queen is killed... Marle will simply disappear.
	1: There might still be time! 
	1: If we can save Leene, history as we know it should remain unchanged!  
	1: Something must have happened to the Queen in this era.
	1: As a result, Princess Nadia ceases to exists!
	1: Hurry!  We have to find the real Queen!
	GIVE T9
END

@S10
	GOTO LINK 12,14
END
;---------
; At the Yakra
SCENE 28 shop
	THEME	0
	MUSIC	Guardia Chapel.mid
	ACTOR	1,	"Yakra", joshTownsFolk, 9, 25, 90
	POSE	9,10
	ACTOR	2,	"Queen Leene", joshTownsFolk, 9, 29, 90
	POSE	9,10
	SEL		1
	MOVE	1,	15, 80

	IF T10, @S11
	1: Prepare yourself, Queen Leene.
	1: YOU!  How did you get in here?
	2: Be careful!
	1: Gyah, ha, ha... It's useless to fight!  
	1: No one will leave here alive!  
	1: Stupid frog! it's time you jumped off this mortal coil!  
	1: True-form... CHANGE!
	MOVE	1, 0, 0, 1
	WAIT 1
	MUSIC "Boss Fight.mid"
	FIGHT2	124
	MUSIC "Guardia Chapel.mid"
	2: You came to rescue me!
	H: The King awaits.  Let us return to the castle.
	2: Yes, thank you so much.  Please join me.
	MOVE	2, 0, 0, 1
	WAIT 1
	MUSIC "Trial.mid"
	H: And so, Crono and his friends returned Queen Leene to the Castle. 
	H: They found Marle afterwards, and returned to their own time period.
	H: Crono escorted Marle to the Castle, where, upon entering, is taken into custody.
	H: A trial begins, and Crono is found guilty of several accounts. He is taken into jail.
	H: Crono then breaks out, and find Lucca came to aid his escape soon after. 
	H: They rush for the forest, where they find Marle, and are cornered by guards in a clearing.
	H: A time portal appears, and they jump in, to the unknown.
	GIVE T10
	GIVE T11
	GIVE T12
	GIVE T13
	GIVE T14
	GOTO LINK 14,0
END

@S11
	H: Nothing here.
END

;---------
; Melchoir's Tent
SCENE 5000 plaza
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Melchoir", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	303, 305
	' Finest weapons at the Fair!
END
;---------
; Weapon Tent
SCENE 5001 plaza
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	252, 202
	' Finest weapons available!
END
;---------
; Item Tent
SCENE 5002 plaza
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	29, 12
	' Finest brews here!
END
;---------
; Porre Market
SCENE 5003 shop
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	304, 502, 452, 252, 253, 202, 29, 12
	' Best Equipment in the Area!
END
;---------
; Snail Stop
SCENE 5004 shop
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	16
	' Finest Jerky!
END
;---------
; Truce Market
SCENE 5005 shop
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	304, 502, 253, 254, 202, 29, 12
	' Welcome to the Market!
END
;---------
; Truce Market 600 AD
SCENE 5006 shop

	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	303, 452, 252, 202, 29, 12
	' Welcome.
END
;---------
; Trann Dome
SCENE 5007 shop
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	453, 255, 203, 29, 22, 12
	' Best items for miles.
END
;---------
; Arris Dome
SCENE 5008 shop
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	OFFER	29, 12
	' Finest brews here!
END
;-------------------------
; Racing
SCENE 6000 plaza
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	GAME	2
	' Place your bets here!
END
;-------------------------
; Blackjack
SCENE 6001 plaza
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Proprietor", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	GAME	4
	' Come play a game of Blackjack!
END
;-------------------------
; Little Girl
SCENE 7000 plaza
	THEME	0
	MUSIC	Millenium Fair.mid
	ACTOR	1,	"Little Girl", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	
	IF T3000, @S7000
	1: I'm missing my kitty. Can you find it for me?	
	GIVE T3000
END

@S7000
	IF T3001, @S7001
	1: Have you found my kitty yet?
END

@S7001
	IF T3002, @S7002
	1: My kitty. Thank you. Here, have my allowance.	
	GIVE G100
	GIVE T3002
END

@S7002
	1: Thank you for finding my kitty!
END
;-------------------------
; Little Girl
SCENE 7001 plaza
	THEME	0
	MUSIC	Millenium Fair.mid
	
	IF T3001, @S7003
	H: Here's the kitten!
	GIVE T3001
END

@S7003
	H: Theres nothing here anymore.
END
;-------------------------
; Fighting Gato
SCENE 7002 plaza
	THEME	0
	MUSIC	Gato.mid
	ACTOR	1,	"Gato", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80

	1: Greetings I am Gato!
	1: I have metal joints!
	1: Beat me up
	1: To earn 15 points!
	1: Would you like to fight?
	WAIT 1
	MENU "fight=@fightGato", "don't fight=@don'tGato"
	1: You don't want to fight?
END

@fightGato
	FIGHT	13
	1: Congratulations!
	1: Please come again!
END

@don'tGato
	I guess you don't want to fight today.
	END
;-------------------------
; Truce Resident
SCENE 7003 shop
	THEME	0
	MUSIC	1000 AD.mid
	ACTOR	1,	"Truce Resident", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80
	
	1: Hello.
	1: I hear the fair is lovely this year.
	1: Alot of people from Porre to the south are flocking to the Fair.
END

;-------------------------
; Porre Resident
SCENE 7004 shop
	THEME	0
	MUSIC	1000 AD.mid
	ACTOR	1,	"Porre Resident", joshTownsFolk, 24, 25, 90
	POSE	24,25
	SEL		1
	MOVE	1,	15, 80

	1: Hello.
END
;-------------------------
-SCENES



; Now we are at the extreme end of the file
;
; Note: You should add a comment to the end of the file, since otherwise an old bug might rise
; up and smite you!


